package router

import (
	"database/sql"

	"gitee.com/hp-huiw/family-expense-api/internal/handler"
	"github.com/gin-gonic/gin"
)

// Sets routes for userActiveToken resource.
func SetUserActiveTokenRoutes(routerGroup *gin.RouterGroup, db *sql.DB) {
	h := handler.NewUserActiveTokenHandler(db)

	routerGroup.GET("/query-device-by-username", h.QueryDeviceByUsername)
	routerGroup.POST("/update-enabled", h.UpdateEnabled)
	routerGroup.POST("/delete", h.Delete)
}
